﻿using System;
using System.Collections.Generic;
 
using System.Text;

namespace GGSharp.Packets
{
    public class WelcomePacket : HeaderPacket
    {
        private uint _seed;

        public WelcomePacket()
        {
            this.Type = PacketType.GG_WELCOME;
        }

        public uint Seed
        {
            get { return _seed; }
            set { _seed = value; }
        }

        public override void Read(System.IO.BinaryReader reader)
        {
            base.Read(reader);
            _seed = reader.ReadUInt32();
        }

        public override void Write(System.IO.BinaryWriter writer)
        {
            base.Write(writer);
            writer.Write(_seed);
        }
    }
}
